 <?php
 require_once('./admin/View/inc_admin.php');
 ?> 
 <div id="content">
 	<div class="inner" style="min-height:1200px;">
 		<div class="row">
 			<div class="col-xs-12">
 				<!doctype html>
 				<html lang="zh-cn">
 				<head>
 					<meta charset="UTF-8">  
 					<title>视频类别列表</title>
 					<link rel="stylesheet" href="assets/css/bootstrap.min.css">
 				</head>
 				<body>    

 					<center><h3>视频类别列表</h3></center>
 					<div class="container-fluid col-md-offset-2 col-md-8">
 						<table align="center"  class="table table-striped"> 
 							<tr class="success">                            
 								<th>序号</th>
 								<th>视频类别名称</th>
 								<th>操作 <a href="index.php?c=type&m=typeform">添加</a></th>
 							</tr>
 							<?php 
 							foreach ($data['videotype'] as $row)  {
 								echo '<tr>';
 								echo '<td >'.$row['tid'].'</td>';
 								echo '<td>'.$row['typename'].'</td>';
 								echo '<td><a href="index.php?c=type&m=typemod&id='.$row['tid'].'"><button type="button" class="btn btn-default ">修改</a><a href="index.php?c=type&m=delete2&id='.$row['tid'].'"onClick="return confirm(\'确定要删除吗？\');"><button type="button" class="btn btn-default ">删除</a></td>';
 								echo '</tr>';
 							}
 							echo '</table>';  
 							$totalrows = count($data['videotype']);
 							echo "<table align='center'><tr><td>共有{$totalrows}种电影类别</td></tr></table>";   
 							?>
 						</table>
 					</div>
 				</div>
 			</div>
 			<hr />
 		</div>
 		<script src="./admin/View/assets/plugins/jquery-2.0.3.min.js"></script>
 		<script src="./admin/View/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
 		<script src="./admin/View/assets/plugins/modernizr-2.6.2-respond-1.1.0.min.js"></script>
 	</body>
 	</html> 